import axios from "@/http/http.js";
// 封装获取职称下拉框接口
export const titleFindAPI = (data) => {
    return axios({
        url: '/title/findTitle',
        method: 'post',
        data
    })
};

// 封装获取职称列表接口
export const titlesFindAPI = (data) => {
    return axios({
        url: '/title/findTitles',
        method: 'post',
        data
    })
};

// 封装修改职称接口
export const titleUpdateAPI = (data) => {
    return axios({
        url: '/title/updateTitle',
        method: 'put',
        data,
    })
};

// 封装添加职称接口
export const titleAddAPI = (data) => {
    return axios({
        url: '/title/addTitle',
        method: 'post',
        data,
    })
};